package com.morn.fanfou.widget;

import com.morn.fanfou.util.Constants;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

public class ConversationSevice extends Service {

	ConversationObserver conversationObserver;

	@Override
	public IBinder onBind(Intent intent) {

		return null;
	}

	@Override
	public void onCreate() {
		if (Constants.DEBUG) {
			Log.i(Constants.TAG, "ConversationSevice onCreate!");
		}
		conversationObserver = new ConversationObserver();

		getContentResolver().registerContentObserver(null, true,
				conversationObserver);
	}

	@Override
	public void onDestroy() {
		if (Constants.DEBUG) {
			Log.i(Constants.TAG, "ConversationSevice onDestroy!");
		}
		getContentResolver().unregisterContentObserver(conversationObserver);
	}
}
